package forrest.triv;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;


public class stats extends Activity {
	

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.stat);
			Bundle bundle=getIntent().getExtras();
		double score=bundle.getDouble("score");
		
		String time = bundle.getString("time");
		TextView text=(TextView)findViewById(R.id.text);
		String disp="score: "+score+"%\ntime: "+ time;
		text.setText(disp);
		Button sel=(Button)findViewById(R.id.sel);
		sel.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent= new Intent(stats.this,list.class);
				startActivity(intent);
			}
		});
		ImageButton res=(ImageButton)findViewById(R.id.res);
		res.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				triv.back=false;
				finish();
				
			}
		});
	}
}